<template>

  <ul class="news-list">
    <li>编号：{{ id }}</li>
    <li>标题：{{ title }}</li>
    <li>内容：{{ content }}</li>
  </ul>

</template>

<script setup lang='ts' name='Detail'>
// props=true，把params类型参数，转为props传参
defineProps(['id', 'title', 'content'])

</script>

<style scope>
.news-list {
  list-style: none;
  padding-left: 20px;
}
.news-list>li {
  line-height: 30px;
}
</style>